﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_RementList.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_RementList" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pan1" />
        <ext:Panel ShowBorder="false" ShowHeader="false" runat="server" ID="pan1" Layout="Fit">
            <Toolbars>
                <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入合同编号或发票号" Trigger2Icon="Search" runat="server" Width="180px">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Grid ID="Grid1" Title="合同收款记录管理" ShowHeader="false" ShowBorder="false" runat="server" EnableCheckBoxSelect="true" DataKeyNames="ID"
                    OnRowDataBound="Grid1_RowDataBound" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:Button ID="btnNew" Text="添加" Icon="Add" EnablePostBack="false" runat="server">
                                </ext:Button>
                                <ext:Button ID="Button1" Text="修改" OnClick="Button1_Click" Icon="ApplicationEdit" runat="server">
                                </ext:Button>
                                <ext:Button ID="Button2" Text="删除" OnClick="Button2_Click" Icon="Delete" runat="server" ConfirmText="您确定要这么做吗？">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button Text="查找" Icon="Find" ID="btnSearch" runat="server" OnClick="btnSearch_Click"></ext:Button>
                                <ext:ToolbarText ID="ToolbarText1" runat="server" Enabled="false" Text="<span style='color:#999'>双击可编辑数据</span>"></ext:ToolbarText>
                                <ext:ToolbarFill></ext:ToolbarFill>
                                <ext:Button Text="重置" Icon="Reload" runat="server" ID="btnReload" OnClick="btnReload_Click"></ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Columns>
                        <ext:BoundField Width="100px" DataField="CONNUB" DataFormatString="{0}" HeaderText="合同编号" />
                        <ext:BoundField Width="100px" DataField="CONNAME" DataFormatString="{0}" HeaderText="合同名称" />
                        <ext:BoundField Width="100px" DataField="PAMOUT" DataFormatString="{0}" HeaderText="收款金额" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="REDATE" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收款日期" TextAlign="Center" />
                        <ext:BoundField Width="200px" DataField="INVNUB" DataFormatString="{0}" HeaderText="发票号" TextAlign="Center" />
                        <ext:BoundField Width="80px" DataField="IAMOUT" DataFormatString="{0}" HeaderText="开票金额" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="INDATE" DataFormatString="{0:yyyy-MM-dd}" HeaderText="开票日期" TextAlign="Center" />
                        <ext:BoundField Width="130px" DataField="PERSON" DataFormatString="{0}" HeaderText="经手人" TextAlign="Center" />
                        <ext:BoundField Width="130px" DataField="ARAMOT" DataFormatString="{0}" HeaderText="应收金额" TextAlign="Center" />
                    </Columns>
                </ext:Grid>
            </Items>
        </ext:Panel>
        <ext:Window runat="server" ID="Window2" Title="收款记录查询" Popup="false" Target="Self" IsModal="false" Width="430px" Height="250px">
            <Toolbars>
                <ext:Toolbar Position="Footer">
                    <Items>
                        <ext:Button runat="server" ID="btn_Save" Text="查询" Icon="Find" OnClick="btn_Save_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Panel ShowBorder="false" ShowHeader="false">
                    <Items>
                        <ext:SimpleForm ShowBorder="false" runat="server" ID="SForm1" LabelWidth="60px" ShowHeader="false"
                            BodyPadding="10px" EnableBackgroundColor="true">
                            <Items>
                                <ext:GroupPanel runat="server" ID="Group1" Title="<input type='radio' id='t1' name='t' CHECKED onclick='st(0);' />根据时间段">
                                    <Items>
                                        <ext:Panel ID="Panel1" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                            Layout="Column" runat="server" EnableBackgroundColor="true">
                                            <Items>
                                                <ext:Label ID="Label1" Text="收款时间：" Width="65px" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:DatePicker runat="server" Label="开始日期" ID="txt_StartTime" EnableDateSelect="true">
                                                </ext:DatePicker>
                                                <ext:Label Text="&nbsp;&nbsp;至&nbsp;&nbsp;">
                                                </ext:Label>
                                                <ext:DatePicker ID="txt_EndTime" Label="结束日期" DateFormatString="yyyy-MM-dd" runat="server"
                                                    EnableDateSelect="true">
                                                </ext:DatePicker>
                                            </Items>
                                        </ext:Panel>
                                    </Items>
                                </ext:GroupPanel>
                                <ext:GroupPanel runat="server" ID="Group2" Title="<input type='radio' id='t' name='t'  onclick='st(1);'/>选择性筛选">
                                    <Items>
                                        <ext:Panel ID="Panel2" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                            Layout="Column" runat="server" EnableBackgroundColor="true">
                                            <Items>
                                                <ext:Label ID="Label2" Text="年度：" Width="40px" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:DropDownList runat="server" ID="Drp_Year" Enabled="false" Width="70px"></ext:DropDownList>
                                                <ext:Label ID="Label5" Text="&nbsp;&nbsp;&nbsp;&nbsp;" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:RadioButton GroupName="mm" runat="server" Enabled="false" ID="rdo2" Text="月份" Checked="true" OnCheckedChanged="rdo2_CheckedChanged"></ext:RadioButton>
                                                <ext:Label ID="Label6" Text="&nbsp;" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:DropDownList runat="server" Enabled="false" ID="Drp_Month" Width="70px"></ext:DropDownList>
                                                <ext:Label ID="Label3" Text="&nbsp;" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:RadioButton GroupName="mm" Enabled="false" runat="server" ID="rdo1" Text="季度" OnCheckedChanged="rdo1_CheckedChanged"></ext:RadioButton>
                                                <ext:Label ID="Label4" Text="&nbsp;" runat="server" ShowLabel="false">
                                                </ext:Label>
                                                <ext:DropDownList runat="server" ID="Drp_JD" Width="80px" Enabled="false"></ext:DropDownList>

                                            </Items>
                                        </ext:Panel>
                                    </Items>
                                </ext:GroupPanel>
                            </Items>
                        </ext:SimpleForm>

                    </Items>
                </ext:Panel>
            </Items>
        </ext:Window>
        <ext:Button runat="server" ID="btn1" OnClick="btn1_Click"></ext:Button>
        <ext:Button runat="server" ID="btn2" OnClick="btn2_Click"></ext:Button>

        <ext:HiddenField runat="server" ID="hid_findD" Text="0"></ext:HiddenField>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="530px" Height="460px">
        </ext:Window>
    </form>
    <script>
        function st(te) {
            if (te == 0)
                __doPostBack('btn2', '');
            else
                __doPostBack('btn1', '');
        }
    </script>
    <script src="../js/extgridbug.js"></script>

</body>
</html>
